<?php
class UserController extends Controller{
	
	public function actionRegister(){
		if(Yii::app()->request->isAjaxRequest){
			$users = new Users('register');
			$users->attributes = $_POST;
			if($users->save()){
				
			} else {
				print_r($users->getErrors());
			}
		}
	}
	
	
}